<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="http://10.0.0.1:8081/ScriptCommander/" />
<title>CreateScript</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">CreateScript</td></tr>
</thead><tbody>
<tr>
	<td>setTimeout</td>
	<td>100000</td>
	<td></td>
</tr>
<!--If a mock script exists delete it (ignore errors)-->
<tr>
	<td>open</td>
	<td>Scripts/Delete/MockScript.aspx</td>
	<td></td>
</tr>
<tr>
	<td>open</td>
	<td>Scripts/Delete/MockScript2.aspx</td>
	<td></td>
</tr>
<tr>
	<td>open</td>
	<td></td>
	<td></td>
</tr>
<tr>
	<td>assertTextNotPresent</td>
	<td>Exception</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Manage Scripts</td>
	<td></td>
</tr>
<tr>
	<td>assertTextNotPresent</td>
	<td>Exception</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=ASPX Script</td>
	<td></td>
</tr>
<tr>
	<td>assertTextNotPresent</td>
	<td>Exception</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>NewScriptName</td>
	<td>MockScript.aspx</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>//input[@value='Save &amp; Continue']</td>
	<td></td>
</tr>
<tr>
	<td>assertTextPresent</td>
	<td>Create/Edit Script</td>
	<td></td>
</tr>
<tr>
	<td>open</td>
	<td>Scripts/Index</td>
	<td></td>
</tr>
<tr>
	<td>assertTextPresent</td>
	<td>MockScript</td>
	<td></td>
</tr>
<tr>
	<td>open</td>
	<td>Scripts/Edit/MockCreate.aspx</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>NewScriptName</td>
	<td>MockScript2.aspx</td>
</tr>
<tr>
	<td>type</td>
	<td>ScriptContent</td>
	<td>&lt;%@ Page Title=&quot;&quot; Language=&quot;C#&quot; Inherits=&quot;System.Web.Mvc.ViewPage&quot; MasterPageFile=&quot;~/Views/Shared/Site.master&quot; %&gt;<br />&lt;asp:Content ContentPlaceHolderID=&quot;head&quot; ID=&quot;headContent&quot; runat=&quot;server&quot;&gt;<br />&lt;/asp:Content&gt;<br />&lt;asp:Content ContentPlaceHolderID=&quot;MainContent&quot; ID=&quot;MainContentContent&quot; runat=&quot;server&quot;&gt;<br />Hello World2<br />&lt;/asp:Content&gt;<br /></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>//input[@value=&quot;Save&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>assertTextPresent</td>
	<td>MockScript2</td>
	<td></td>
</tr>
<tr>
	<td>chooseOkOnNextConfirmation</td>
	<td></td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>Delete_MockScript_aspx_Link</td>
	<td></td>
</tr>
<tr>
	<td>assertConfirmation</td>
	<td>Are you sure you want to delete this script?</td>
	<td></td>
</tr>

</tbody></table>
</body>
</html>
